package com.lxf.education;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
/**
* @author:LuoXingFa;
* @version:Date:2022年5月6日下午5:19:06
*/
@Configuration
public class SecurityUtils extends WebSecurityConfigurerAdapter{

	 @Override
	    protected void configure(HttpSecurity httpSecurity) throws Exception {
	    
	        httpSecurity.authorizeRequests().antMatchers("/**").permitAll()//放行所有的权限
	        .and()
	        .csrf().disable();
	        httpSecurity.headers().frameOptions().disable();//不加入此行代码，http请求无法完成对frame的调用展示
	    }
}
